<?php if(!defined('BASEDIR')) exit('No direct script access allowed');
/* Startup *********************************************** */

session_start();

# Error Handler
$cloud->load_class('debugger', 'dbg');
	$handler = array($cloud->dbg, 'error_handler');
	set_error_handler($handler);

# Database Connection
if($dbName != ''){
	$cloud->load_class($dbDriver, 'db');
	$cloud->db->connect($dbName,$dbPass,$dbUser,$dbServer);
}

# Template Engine
if($tplEngine != ''){
	$cloud->load_class($tplEngine, 'tpl');
}

# URL Handler
if($urlHandler != ''){
	$cloud->load_class($urlHandler, 'url');
}

/* ******************************************************** */
?>